﻿using System.Net;

namespace CommandSet.utils
{
    internal class NetUtil
    {
        /// <summary>
        /// 下载最新的cmd内容
        /// </summary>
        public static bool downloadFile(string url,string path)
        {
            using (WebClient client = new WebClient())
            {
                try
                {
                    client.DownloadFile(url, path);
                    return true;
                }
                catch (System.Exception)
                {

                    return false;
                }
            }
        }
    }
}
